<?php
class CommentAction extends Action{
	public function _initialize(){
		$USER_PUBLIC = C('USER_PUBLIC');
		$YICMS_PUBLIC = C('YICMS_PUBLIC');
		$about = M('About')->find();
		$this->assign('USER_PUBLIC',$USER_PUBLIC);
		$this->assign('YICMS_PUBLIC',$YICMS_PUBLIC);
		$this->assign('about',$about);
		
		if(!empty($_SESSION['uid'])){
			$data['to_uid']=session('uid');
			$data['status']=0;
			$num=M('User_msg')->where($data)->count();
			$this->assign('simi',$num);
		}
	}
}
?>